@bezier_transition:all 550ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
@reactBoxShadowDepth1:0 3px 6px rgba(0,0,0,.16),0 3px 6px rgba(0,0,0,.23);
@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}


#home_account_pane{

  transition: opacity 550ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
  opacity: 1 !important;
  color: #fff;
  font-family: Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 18px;

  #home_left_bar{
    width: 380px;
    background-color: rgba(34, 34, 34, 0.5);

    #welcome{
      text-align: left;
      padding: 24px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.23);
      font-size: 20px;
      font-weight: 500;
      line-height: 20px;
      p{
        margin: 0;
        margin-top: 10px;
      }
      small{
        font-size: 13px;
      }

      #get_started_link,
      #disconnect_link span{
        cursor: pointer;
        color: white;
        text-decoration: underline;
      }

    }

    #workspaces_center{
      width: 100%;
      margin-top: 0;
      transition:margin 0.5s ease;
      overflow-y: auto;

      .section-title{
        font-size: 13px;
        font-weight: 500;
        padding: 16px 24px 6px 24px ;
        line-height: 13px;
      }

      .workspaces{


        .workspace-entry {
          cursor: pointer;
          padding: 12px 10px 12px 0;
          clear: left;
          font-weight: normal;
          transition: @bezier_transition;

          .workspace-badge{
            display: inline-block;
            float: left;
            border-radius: 34px;
            color: white;
            text-align: center;
            padding: 7px 0;
            font-family: Roboto, sans-serif;
            margin: 5px 24px 12px;
            box-sizing: border-box;
            width: 34px;
            height: 34px;
            font-size: 15px;
            line-height: 20px;
            font-weight: 500;
            background-color: rgba(255,255,255, 0.18);
            position: relative;

            span.mdi.mdi-folder {
              font-size: 18px;
              margin-left: 1px;
            }

            span.badge-overlay{
              left: 16px;
              font-size: 8px;
              color: #009688;
              position: absolute;
              top: 13px;
            }

          }

          .workspace-label{
            padding: 0;
            font-weight: 400;
            font-size: 18px;
            margin: 0;
            line-height: 26px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            display: block;
            .workspace-new, .workspace-num-badge{
              display: inline-block;
              font-size: 10px;
              font-weight: 500;
              border-radius: 3px;
              margin-left: 5px;
              height: 13px;
              line-height: 13px;
              padding: 0 3px;
              background-color: white;
              color: rgba(0,0,0,0.63);
              text-transform: uppercase;
            }
          }

          .workspace-description{
            display: block;
            margin: 0;
            padding: 0;
            font-weight: normal;
            font-size: 13px;
            opacity: 0.7;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
          }

          .workspace-additional-action {
            float: right;
            margin-top: -40px;
            padding: 12px;
            border-radius: 50%;
          }

          &.ws_selector_title{
            h3{
              font-size: 13px;
              font-weight: 500;
              padding: 16px 24px 6px 24px ;
              line-height: 13px;
            }
            &:hover {
              background-color: transparent;
            }
          }
          &:hover {
            background-color: rgba(255,255,255,0.3);
          }
          &.selected{
            background-color: rgba(227, 93, 82, 0.7) !important;
            color: white;
          }
          &:last-of-type {
            border-bottom: 0;
          }
          &.workspace-access-inbox{
            .workspace-label{
              text-transform: uppercase;
            }
            .workspace-badge{
              background-color: rgba(255, 255, 255, 0.95);
              color: rgba(0,0,0,0.63);
            }
          }
        }

        #workspaces_button {
          padding: 38px 30px;
          width: 340px;
          text-align: center;
          input[type="button"] {
            float: right;
            padding: 7px 30px;
            color: white;
            border: 0;
            cursor: pointer;
            margin-top: 0;
            background-color: #e35d52;
            display: none;
            &.disabled{
              /* opacity: 0.5; */
              cursor: default;
            }
          }
        }
      }

    }

    .no-flexbox &{
      float: left;
    }

  }

  #home_center_panel {
    z-index: 1;
    .flexbox &{
      flex:1;
    }
    .no-flexbox &{
      position: absolute;
      left: 420px;
    }
    height: 100%;
    div#logo_div{
      transition: @bezier_transition;
      margin-top:17%;
      position: relative;
    }
    &.legend_visible div#logo_div{
      margin-top: 5%;
    }

    #logo_div{
      text-align: center;
      padding-top: 20px;
      margin: 0 20px;
    }

    &.legend_visible div#ws_legend{
      animation: fadein 0.2s ease-in;
      top: 2%;
      position: relative;
      opacity: 1;
    }

    &.legend_visible #tutorial_dl_apps_pane {
      transition: opacity ease-out 0.6s;
      opacity: 0;
    }

  }

  a{
    cursor: pointer;
    text-decoration: underline;
    &:hover{
      color: #fff;
    }
  }

  #notifications_center {
    float: right;
    width: 29%;
    height: 96%;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #ebedf0;
    color: rgb(111,123,136);
    margin-top: 2px;
    transition: width 1s ease;
    border-radius: 6px 0 0 0;
    .notif_event_container{
      width: 56%;
    }

    .notif_event_container > div {
      padding:0;
      line-height: 15px;
      color: rgba(92, 92, 92, 0.55);
    }

    .notif_event_container > div.notif_event_label {
      color: rgb(111,123,136);
      line-height: 25px;
      overflow: hidden;
    }

    .imagePreviewOverlay{
      display: none !important;
    }

    img {
      float: left;
      height: 64px;
      width: 64px;
      margin: 0 20px;
    }

    div[data-is_loaded] {
      display: block !important;
      float: left;
      width: 104px !important;
      text-align: center;
    }

    div[data-is_loaded] img {
      float: none!important;
    }
  }

  h1{
    margin-top: 0;
    padding-top: 44px;
    font-size: 21px;
    text-align: center;
    font-weight: normal;
  }

  #ws_legend{
    text-align: center;
    font-size: 34px;
    color: white;
    line-height: 55px;
    opacity: 0;
    transition: opacity ease 0.9s;
    position: relative;
    top: 30px;

    @infoBadgeWidth:160px;
    @infoBadgeMargin:3px;
    .repoInfoBadge {
      animation: fadein 0.2s ease-in;
      position: relative;
      box-sizing: border-box;
      display: inline-block;
      font-size: 20px;
      width: @infoBadgeWidth;
      line-height: 25px;
      background-color: rgba(0, 150, 136, 0.76);
      border-radius: 3px;
      padding: 0;
      margin: @infoBadgeMargin;
      min-height: 114px;
      vertical-align: top;
      text-align: left;
      clear: both;
      color: rgb(255, 255, 255);
      box-shadow: 0 3px 6px rgba(0,0,0,.16),0 3px 6px rgba(0,0,0,.23);
      > div {
        clear: both;
      }
      &:nth-child(1){
        background-color: rgba(96, 125, 139, 0.85);
      }
      &:nth-child(2){
        background-color: rgba(33,150,243,0.85);
      }
      &:nth-child(3){
        background-color: rgba(244, 67, 54, 0.75);
      }
      &:nth-child(4){
        background-color: rgba(0, 150, 136, 0.85);
      }
      .repoInfoBox {
        position: absolute;
        width: 100%;
        height: 100%;
      }
      .repoInfoBody {
        padding: 12px 16px;
        > div {
          width: 100%;
        }
      }
      .repoInfoHeader{
        padding: 7px 16px;
        border-top: 1px solid rgba(0,0,0,0.10);
        line-height: 25px;
        .repoInfoTitle{
          float: left;
          font-weight: 500;
          text-transform: none;
          font-size: 13px;
          text-align: left;
          color: rgba(255, 255, 255, 0.76);
        }
        span[class^="icon-"], span[class^="mdi mdi-"] {
          display: block;
          font-size: 18px;
          opacity: 0.76;
          text-align: right;
          line-height: 25px;
        }
      }

      &.main{
        background-color: rgba(0, 150, 136, 0.85);
        width: @infoBadgeWidth * 2 + @infoBadgeMargin * 2;
        &.size-3{
          width: @infoBadgeWidth * 3 + @infoBadgeMargin * 4;
        }
        &.size-4{
          width: @infoBadgeWidth * 4 + @infoBadgeMargin * 5;
        }
        font-size: 13px;
        h4{
          margin: 0;
          padding: 0;
          font-weight: 400;
          font-size: 20px;
        }
        .repoInfoBody{
          padding: 12px 16px;
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
        }
        .repoInfoHeader{
          padding-right: 8px;
        }
        .repoInfoTitle{
          width: 100%;
          span.enter_save_choice{
            input{
              margin: 0;
            }
          }
          a{
            color: white;
            font-weight: 500;
            float: right;
            text-decoration: none;
            text-transform: uppercase;
            display: inline-block;
            padding: 0 8px;
            border-radius: 2px;
            transition: @bezier_transition;
            &:hover{
              background-color: rgba(255,255,255,0.5);
            }
          }
        }

      }

    }




    > small {
      font-size: 16px;
      line-height: 1.4em;
      display: block;
      &.show_description {
        line-height: 1.9em;
        display: block;
      }
    }

    &.empty_ws_legend{
      opacity: 0;
    }

  }

  #list_cont{
      overflow-y: auto;
  }

}

@videoPaneWidth:320px;

#videos_pane {

  color: rgba(0, 0, 0, 0.87);
  background-color: transparent;
  position: absolute;
  border-radius: 0;
  top: 0;
  right: 0;
  width: @videoPaneWidth;
  height: 100%;
  overflow: auto;
  opacity: 1;
  max-width: 930px;
  font-family: Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-weight: 300;
  z-index: 20000;
  overflow-y: scroll;
  overflow-x: hidden;
  box-shadow: @reactBoxShadowDepth1;
  transition: @bezier_transition;
  &.closed{
    right: -(@videoPaneWidth + 5px);
  }
  a{
    text-decoration: none;
  }

  div.mdi.mdi-close{
    float: right;
    font-size: 1em;
    margin-right: 11px;
    margin-top: 11px;
    cursor: pointer;
    color: white;
  }
  div.tutorial_title{
    font-size: 20px;
    line-height: 24px;
    text-align:center;
    background-color: #546E7A;
    padding: 20px;
    color: white;
    font-weight: 500;

  }

  div.tutorial_more_videos_cont{
    background-color: #546E7A;
    clear:left;
    text-align:center;
    a.tutorial_more_videos_button{
      text-align: center;
      font-size: 13px;
      font-weight: 500;
      background-color: white;
      padding: 5px 10px;
      border-radius: 3px;
      color: rgba(0,0,0,0.76);
      display: inline-block;
      margin: 20px;
      white-space: nowrap;
      i{
        display: inline-block;
        margin-right: 5px;
      }
    }
  }

  .videoCards {
    background-color: #CFD8DC;
    padding: 10px;
    .video-card {
      border-radius: 3px;
      display: inline-block;
      margin-right: 10px;
      margin-bottom: 10px;
      .tutorial_legend {
        border-radius: 3px;
        width: @videoPaneWidth - 25px;
        margin-left: 1%;
        font-size: 14px;
        background: white;
        box-shadow: 0 2px 3px rgba(0,0,0,.16),0 2px 3px rgba(0,0,0,.43);
        box-sizing: border-box;
        h2{
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
          font-weight: 400;
          font-size: 24px;
          margin-top: -35px;
          color: white;
          height: 40px;
          padding: 0;
          margin-bottom: 8px;
          text-shadow: 0 0 4px rgba(0, 0, 0, 0.53);
        }
      }
      .tutorial_content{
        padding: 0 16px;
        font-size: 13px;
      }
      div.tutorial_video_thumb{
        width: @videoPaneWidth - 25px;
        height: (@videoPaneWidth - 25px) * 9 / 16 - 2px;
        background-position: center center;
        background-size: 100%;
        background-repeat: no-repeat;
        border-radius: 3px 3px 0 0;
      }
      div.tutorial_load_button {
        display: block;
        padding: 5px 18px 12px;
        cursor: pointer;
        text-align: right;
        text-transform: uppercase;
        font-weight: 500;
        font-size: 15px;
        color: rgba(0,0,0,0.63);
      }
    }
  }
}

div#tutorial_dl_apps_pane{
  width: 100%;
  position: absolute;
  margin-top: 10px;
  opacity: 1;
  z-index: 2;
  a{
    text-decoration: none;
    color: white;
  }

  > div > div {
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
  }

  div.dl_blocks_sep{
    float: left;
    height: 90px;
    border-right: 2px solid white;
    margin: 0 10px;
  }

  div#dl_pydio_cont{
    width: 750px;
    margin: 0 auto;
    background-color: transparent;
  }
  div#dl_pydio_for{
    display: none;
    float: left;margin: 44px 18px;font-size: 21px;
  }

  span.dl_tooltip_container{
    display: inline-block;
    float:left;
    width: 90px;
    text-align: center;
    div.mui-tooltip{
      top:0;
      width:200px;
      left: -50px;
    }
  }

  @dl_element_width:90px;
  div#dl_pydio_win, div#dl_pydio_mac, div#dl_pydio_ios, div#dl_pydio_android{
    width: @dl_element_width;
    padding-top: 8px;
    position: relative;
    a.icon-laptop, a.icon-desktop, a.icon-tablet, a.icon-mobile-phone{
      font-size: 70px;
    }
    a.icon-windows, a.icon-apple, a.icon-android{
      font-size: 22px;
      position: absolute;
      left:0 ;
      top: 26px;
      color: white;
      width:@dl_element_width;
    }
    div{
      font-size: 12px;
      bottom: -10px;
      width: @dl_element_width;
      text-align: center;
      position: absolute;
    }
  }

  div#dl_pydio_mac{
    a.icon-desktop{
      font-size: 65px;
    }
    a.icon-apple{
      top:18px;
    }
    div{
      bottom: -14px;
    }
  }
  div#dl_pydio_android{
    a.icon-android{
      top:30px;
    }
  }

}

div.home_search{
  text-align: center;
  position: relative;
  top: 120px;
  background-color: transparent;
  width: 710px;
  margin: 0 auto;
  height: 40px;
  overflow: visible;

  div.react-autosuggest{
    position: absolute;
    input.react-autosuggest__input {
      width: 340px;
      font-size:16px;
      padding: 8px 0;
      position: relative;
      border-width:0 0 1px 0;
      border-color: white;
      border-radius: 0;
      background-color: transparent;
      color: white;
      @placeholder: rgba(255, 255, 255, 0.73);
      &::-webkit-input-placeholder {
        color: @placeholder;
      }
      &:-moz-placeholder { /* Firefox 18- */
        color: @placeholder;
      }
      &::-moz-placeholder {  /* Firefox 19+ */
        color: @placeholder;
      }
      &:-ms-input-placeholder {
        color: @placeholder;
      }
    }
    .react-autosuggest__suggestions{
      width: 340px;
      background-color: rgba(255, 255, 255, 0.98);
      max-height: 235px;
      li.react-autosuggest__suggestion{
        text-align: left;
        span.nodeSuggestion{
          display: block;
          padding: 16px 8px;
          border-bottom: 1px solid #e0e0e0;
          font-size:14px;
          color: rgba(0,0,0,0.93);
          cursor: pointer;
          span.highlight{
            display: inline-block;
            background-color: rgba(255, 255, 0, 0.26);
          }
          span.icon{
            font-size:16px;
            display: inline-block;
            margin: 0 12px 0 5px;
            color: rgba(0,0,0,0.73);
            text-align: center;
            width: 25px;
          }
        }
        span.groupHeader{
          display: block;;
          padding: 8px 8px;
          border-bottom: 0px;
          font-size:13px;
          color: white;
          cursor: pointer;
          background-color: #009688;
          span.openicon{
            display: none;
            float: right;
          }
          &:hover{
            span.openicon{
              margin-top: 3px;
              display: inline-block;
            }
          }
        }
      }
    }
  }
  span.suggest-search{
    font-size:16px;
    position: absolute;
    color: white;
    right: 380px;
    top: 10px
  }

}

.form-qrcode_dialog_form{
  min-width: 296px;
  .dialogTitle{
    display: none;
  }
  .home-qrCode-desc{
    padding: 0 20px;
  }
  .home-qrCode{
    text-align: center;
  }
  .button-panel{
    text-align: right;
    padding: 10px;
  }
}

@media only screen
and (max-width : 980px){
    #notifications_center div.notif_event_container{
        width: 100px;
    }
}

@media only screen
and (max-width : 800px) and (min-width: 420px){

    #logo_div{
      margin-top: 25% !important;
      img{
          width: 210px;
      }
    }

    .tutorial_legend{
        clear: left;
        width: 97%;
    }

    .tutorial_video{
        width: 94%;
        height: 300px;
        margin-right: 3%;
        margin-left: 3%;
    }
    div#dl_pydio_cont {
      width: 650px !important;
    }
    div.home_search{
      width: 650px !important;
      span.suggest-search{
        right:320px;
      }
    }

    #dl_pydio_for{
        display: none;
    }

    #home_account_pane{
      #home_left_bar{
        width: 300px;
        .workspace-entry{
          padding: 8px 10px 8px 23px !important;
          span.workspace-badge{
            display: none !important;
          }
        }
      }
    }

    #welcome{
        font-size: 1em;
        padding-top: 30px;
        padding-bottom: 10px;
    }

    #home_account_pane #welcome small{
        padding-top: 10px;
    }

    #workspaces_list li.ws_selector_title h3{
        padding: 0 30px;
    }

}

@media only screen
and (max-width : 420px){
  #home_left_bar{
    width: 100% !important;
    position: absolute;
    top:0;
    height: 100%;
  }
  .ajxp_ws-welcome #logging_string{
    margin-right: 16px;
  }
  #home_center_panel{
    display: none;
  }
  #workspaces_button {
    padding: 38px 0;
    width: 100%;
  }
}
